#!/usr/bin/python
# -*- coding: utf-8 -*-

__all__ = [u'WriterInterface']

class WriterInterface(object):

  def clear(self):
    self._clear()

  def _clear(self):
    pass

  def write (self, text, style=u'std'):
    assert (isinstance(text, unicode))
    self._write(text, style)

  # Please implements 
  def _write (self, text, style):
    u"""
    Please implement this function.

    No checks needed, all is yet done so ...
    text is an unicode string.
    style is a valid style (unicode string)

    :param text: text the user wants to write
    :param style: text style.
    """
    raise NotImplementedError


if __name__ == '__main__':
  import doctest
  doctest.testmod()
